A student genius could be dubbed as Ascot's brightest girl after completing five difficult maths tasks in under two hours.

Charters School student Grace competed against 250,000 students from over 3000 schools across the UK in the Mathematical Olympiad for Girls, a prestigious maths contest.

The Sixth Form student had to complete five challenging maths problems in under two hours.

READ MORE: First Frimley Health patient receives Covid-19 vaccine

Here is an example of a problem from a previous UK Mathematical Olympiad for Girls competition (scroll down to see the answer)

Each of 100 houses in a row are to be painted white or yellow. The residents are quite particular and request that no three neighbouring houses are all the same colour.

(a) Explain why no more than 67 houses can be painted yellow.

(b) In how many different ways may the houses be painted if exactly 67 are painted yellow?

After completing the challenges, Grace had managed to attain a score placing her in the top 25 per cent of all participants in the challenge, which is an outstanding achievement.

Grace said: "I was surprised and delighted by my results. This has given me a lot of confidence and I am now applying to study Mathematics and Statistics at University"

All of the challenges involve problem solving and logical thinking - skills which employers value highly.

Miss King, Charters’ UKMT Coordinator said, "We would like to congratulate Grace on her outstanding performance on the recent UKMT Mathematical Olympiad for Girls. She did a fantastic job and achieving a spot in the top 25 per cent of all participants in the U.K. is an outstanding achievement and one of which Grace should be very proud"

Answer to maths problem:

We shall denote a house that is to be painted white by W and a house that is to be painted yellow by Y. (a) Let us number the houses 1 to 100 from left to right and consider the 34 blocks (1), (2, 3, 4), (5, 6, 7), . . ., (95, 96, 97), (98, 99, 100). As no three neighbouring houses can all be the same colour there must be a maximum of two yellow houses in each of the 33 blocks of three houses. From this we can deduce that at most 1 + 2 × 33 = 67 houses could be painted yellow. Note It is possible to paint exactly 67 houses yellow, one colouring that achieves this is Y followed by 33 blocks of WYY.