A school in High Wycombe has apologised for handing out a question in a maths test which stated God intended all people to be straight.

The paper sparked outrage among pupils at The Royal Grammar School in Buckinghamshire.

The question asked:

If in a town, 70 per cent of the men are married to 90 per cent of the women (and each marriage is between one man and one woman, as God intended when he made humans male and female), what percentage of the adult population are married? Maths question

Dozens of pupils complained about the question seen by many as homophobic. The school says the question came from a retired teacher and staff were not aware of it before pupils sat the test.

Speaking to the Huffington Post, Headteacher Philip Wayne said: