Given data:
The first expression is 1/4 x 36.
The second expression is 5/8 x 36.
The firts expression can be written as,

The second expression can be written as,

The 7/8 x 36 can be written as,

Substitute from equation (I).

Thus, the value of firts expression is 9 and second expression is 45/2.