Answer:
petty cash fund   440 debit
     cash              440 credit
--stablishment of the fund--
freight-in              46 debit
postage expenses      78 debit
miscellaneous expenses 111 debit
cash shortage loss       12 debit
          Cash                247 credit
--reimbursement of the fund--
petty cash fund    50 debit
          Cash           50 credit
--incerase of the fund to 490--
Explanation:
The petty fund will be stablish using cash, so we decrease cash and create the petty fund.
Then, the expenditures will be against cash, so we don't have to use the petty fund account.
Lastly, to increase the fund we take from the cash account the 50 dollars increase.