X is the total number of ships and starbase structures that target player controls. That player puts the top X cards of his or her market on the scrapheap.