A is 15 years elder than B.5 years ago A is four times as old as B.find their present ages

a = b+15

a-5 = 4(b-5)

a=25
b=10

5 years ago,
a was 20 and b was 5