He took 3 1/4 hours to clean the bathroom and then he took 1/8 hours to clean the kitchen.
First, we can convert the mixed number 3 1/4 into a fraction:
3 1/4 = 3/1 + 1/4 = 13/4
Now, we can sum both times:
13/4 + 1/8 = ((13*8)+(4*1)) / (4*8) = (104 +4)/ 32 = 108/32 = 27/8
Finally, we need to convert the total of hours 27/8 as a mixed number:
If 27/8 = 3.375
We take the whole number and then convert the decimal remaining into a fraction:
3 - whole number
0.375* (1000/1000) = 3/8
Hence, the mixed number for the total time that Ali spent cleaning both rooms is 3 3/8