There are 4 weights and scales. How many loads that are different by weight can be accurately weighed using these weights, if
a) weights can be placed only on one side of the scales;
b) weights can be placed on both sides of the scales?