[tex]\mapsto\bold{p=10x+2y }[/tex]
[tex]\mapsto\bold{p=10\times 4+2y~(\because{x=4}) }[/tex]
[tex]\mapsto\bold{p=10\times 4+2\times 6~(\because{y=6}) }[/tex]
[tex]\mapsto\bold{p=40+12 }[/tex]
[tex]\dashrightarrow\bold{P=52 }[/tex]
So,
The value of p is 52.