COMBINED ANALYSIS OF SOFT AND HARD X-RAY SPECTRA FROM FLARES