First, consider the total male and female passengers which is 48. Equation 1 can be expressed as,
xx + yy = 48
Then, for the ratio,
xx / yy = 5/7
Cross-multiplying the equation. The equation becomes,
7xx = 5yy
The two linear equations are therefore,
(1) xx + yy = 48
(2) 7xx - 5yy = 0