def typing_of_pushout(b, c, p, b_p, c_p, b_typgr, c_typgr):
    """get the typings of the pushout"""
    p_typgr = {}
    for node in b.nodes():
        if node in b_typgr:
            p_typgr[b_p[node]] = b_typgr[node]
    for node in c.nodes():
        if node in c_typgr:
            p_typgr[c_p[node]] = c_typgr[node]
    return p_typgr
