Changes made :
In a, the subject is the doer of the action.
In b, the subject is the receiver of the action.
In b, the verb is changed into the passive form (Be + V3, Ved).
Be
V3 , Ved
3. In b, ‘by’ is added before the doer of the action.
doer
receiver
receiver
doer