Two shipping companies charge different amounts to ship a package. Company A charges $5.50 for the first pound and $0.40 for each additional pound. Company B charges $6.75 for the first pound and $0.35 for each additional pound. If the cost to ship a package is the same for both companies, what is the weight in pounds, x, of the package?