This question was asked in Ex 4.3, 3

4 5(p-1)=34

Mohd Ameen's image