We know that 312 students enrolled in the curse, and if we assume that no one deserts, we can infer the equation:
[tex]P+F=312\text{ \lparen1\rparen}[/tex]
As P is the passing students and F is the failing students.
From the second statement, 7 times the number of students passed as failed, we can infer the equation:
[tex]F=7P\text{ \lparen2\rparen}[/tex]
With the same meaning of the variables.
Then we can replace F in (1), we have:
[tex]P+7P=312[/tex][tex]P=39[/tex]
And from (2):
[tex]F=39\times7=273[/tex]
Then the correct answer would be:
Passing students: 39
Failing students: 273