The relation between Gibbs Free energy and emf of the cell can be related as follows,
∆G=−nFEcell
The electrode reactions can be written as follows,
Pb2++2e−→Pb∆G1=−2FEPb2+/Pbo
Pb4++4e−→Pb∆G2=−4FEPb4+/Pbo
Pb4++2e−→Pb2+∆G3=−2FEPb4+/Pb2+o
Now, ∆G3=∆G2−∆G1
−2FEPb4+/Pb2+o=−4FEPb4+/Pbo+2FEPb2+/Pbo
⇒4EPb+4/Pbo=2EPb+2/Pbo+2EPb+4/Pb+2o
⇒4n=2m+2EPb+4/Pb+2o⇒EPb+4/Pb+2o=2n−m⇒EPb+2/Pb+4o=m−2n
Hence, the value of x=2