Hi
36 tables
Let x and (36-x)represent the number of 4-legged and 3-legged tables respectively
Question states***
4x + 3(36-x) = 124
x = 16, the number of 4-legged tables.
CHECKING our Answer*** there are 20 3-legged (36-16)
4*16 + 3*20 = 64 + 60 = 124 legs