Answer
accounts receivable are the amounts which we will get in future they are considered as assets of business because we will get them in future likewise accounts payable are the accounts which are outstanding amounts that we have to pay which will go out from our business so they are considered as liability