When calculating his income tax an accountant realized that his federal tax was 30% of his income after his provincial tax was paid, and that his provincial tax was 20% of his income after his federal tax was paid. If the accountant's income before taxes amounted to $47 000, how much federal tax did he have to pay?