Megan is checking her tax bill for the last year.

The tax rates were as follows:

• No tax on the first £11 000 of earnings

• Earnings in excess of £11 000 and up to £43 000 taxed at a rate of 20%

• Earnings in excess of £43 000 and up to £150 000 taxed at a rate of 40%

• Earnings over £150 000 taxed at a rate of 45%

Last year, Megan earned £158 900 before tax.

How much tax did she pay in total?