Jack and jill were catching tadpoles. At first jill caught nine times three more than jack caught. Jack was upset and released half of jill’s tadpoles, and then six times as many as jack caught swam away. After all of this, jill only had three tadpoles left. How many tadpoles did jack catch?