Let the two numbers be x and y
Then, by first condition, ratio of these two numbers = 5 : 6
x:y = 5: 6
xy=56⇒y=6x5
And by second condition, then, 8 is subtracted from each of the numbers, then ratio becomes 4:5
x−8y−8=45⇒5x−40=4y−32⇒5x−4y=8
Now, put the value of y in Eq. (ii), we get
5x−4(6x5)=8⇒25x−24x=40⇒ x=40
Put the value of x in Eq (i), we get
Y=65×40=6×8=48
Hence, the required numbers are 40 and 48