<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list_pgn(db):
 # type: (canmatrix.CanMatrix) -> typing.Tuple[typing.List[int], typing.List[canmatrix.ArbitrationId]] """ Get all PGN values for given frame. :param db: CanMatrix database :return: tuple of [pgn] and [arbitration_id] """

    id_list = [x.arbitration_id for x in db.frames]
    pgn_list = [arb_id.pgn for arb_id in id_list]
    return pgn_list, id_list