Problem with variations. I have 3 pizza sizes for 3 different toppings prices

Hello, I have a question! I have 3 types of pizza in which the sizes are 12 “, 14”, and 16 “inch. Also i have 3 diferrents price for toppings.
The price needs to update when the customer chooses the size of the pizza. Therefore: In size 12, the value of the toppings is: £ 1.15
In size 14, the topping value is: £ 1.35 and in size 16 the topping value is £ 1.40
How can I do this within my wordpress website?
I thank you for your time and patience for helping me. If anyone can answer I will appreciate it

Source link