A = 65 B = 40
because you can set it up as 13x-8x=25 this turns to 5x=25 and that turns to x=5 so you get 13*5=a and 8*5=b so a=65 and b=40