Item Price Depends on a percentage of another item

hello
I want to make a new item (insurance policy) which price is 10% of another item (I phone 8).
if the price of the I phone 8 has been changed or updated then the insurance policy price is updated.
is there a way i can set this up?
i tried pricing rule but couldn’t figure out how.
any help is appreciated
thanks