Programming about solving profit using VAT function

A sari-sari store needs a program that can help it add the corresponding profit and VAT values to its inventory.

The program should add 5% to the base price for the profit amount. The 12% VAT should be added to the price after the solving for the price with profit. Their functions should be separate (one function for the profit and one function for the VAT). As expected, this program will need to handle decimal values.