Consider the bigger triangle as △ABC, such that, ∠ABC=90∘
AC=17, AB=8 and a line from A meets BC at D, BD=6
Now, In △ABC,
Using Pythagoras Theorem,
AB2+BC2=AC2
82+BC2=172
BC2=289−64
BC=15
Now, In △ABD,
Using Pythagoras Theorem,
AB2+BD2=AD2
82+62=AD2
AD2=100
AD=10
3tanx∘−2siny∘+4cosy∘=3(PB)−2(PH)+4(BH)
= 3(ABBC)−2(ABAD)+4(BDAD)
= 3(815)−2(810)+4(610)
= 85−85+125
= 125=225