如图,已知AB∥CD,AD与BC相交于点P,AB=4,CD=7,AD=10,则AP=(  )