Let one pipe fills the cistern in mins.
Therefore, the other pipe will fill the cistern in mins.
Time taken by both, running together, to fill the cistern
Part filled by one pipe in
Part filled by the other pipe in
Part filled by both pipes, running together, in
Thus, one pipe will take 5 mins and other will take mins to fill the cistern.