Auto VAT Calculation

Dear Team,

Anyone can help me with tax calculation?

Inclusive Tax All

  1. Item A - Rate 50

Basic Item Rate would 21.74
100% Tax - 21.74 ( Inclusive Tax 15%)
15% VAT- 6.52 ( Inclusive Tax 15 )

Invoice total With Taxes - 50

Above calculation is being done

What if 2nd Item without 100%

Item B - Rate 50
Bais Item rate - 42.50

15% VAT - 7.5 ( Inclusive Tax )
Invoice total With Taxes - 50

I need this automation