prims coalscam

hey how to solve COALSCAM by prims & also which is better to use prims/kruskal in a comman problem??

any body plz help me out???

//