Solar cycle variation of long duration 10.7 cm and soft X-ray bursts