x + y = 15
2x - 3y = 5
y = 15-x
2x -3(15-x) = 5
2x - 45 + 3x = 5
5x = 50
x = 10, y = 5
Therefore, there are 10 and 5 apartments in each building, respectively.
I hope my answer has come to your help. Thank you for posting your question here in Brainly.