Jerry and Steve each had 24 candy bars, that is, the total candy bars are 48:
If Jerry sold 50% of his candy bars, it means that he sold one half of the total, then, he sold 12 bars.
Steve sold 6 candy bars.
Then, they both sold 12 + 6 = 18 candy bars together.
The fraction of the total candy bars is then:
18/48 = 9/24 = 3/8