Question 256906
Let Lydia's hours be L and Mario's hours be M.
From the ratio, you know,
{{{M/L=7/8}}}
From the total hours you know,
{{{M+L=30}}}
You can solve this since you have two equations with two unknowns. 
Re-post if you get stuck.