Words to algebra

How did he come up with 7/3w=t? I understand up to the 4/3w=m part. Thank you.

Great thank you!! I understand now.