The small triangle at the bottom right has a base of 12
It is similar to the large triangle such that
(5 x - 1) / 32 = 12/24
(5x - 1) / 32 = 1/2 cross-multiply
2 ( 5x - 1) = 32
5x - 1 = 32/2
5x - 1 = 16
5x = 17
x =17/5
And the small triangle at the top is similar to the large triangle such that
(4y -3) /( 32 - (5x - 1) ) = 24 /32
(4y -3) / (32 -16) = 24 / 32
(4y -3) / 16 = 12 / 16
4y - 3 = 12
4y = 15
y = 15/4