Answer and Explanation:
The journal entry to record the purchase is shown below;
Materials (510 units × $18) $9,180
To Accounts payable $9,180
(To record the purchases)
Here the material is debited as it increased the assets and credited the account payable as it also increased the liabilities
Therefore the above journal entry should be passed