Updating a column value based on a value

I have a two lists, List A and List B. In List A it has a field named “Quantity”. In List B it has a column named “Availability”. I want to know how to update the column “Availability” in List B in a specific row when i enter a value and save from “Quantity” field. Im using infopath for the forms.