ABC= (5x+40) and BDC=ax what is the value of x

42