Answer:
The journal entries to record both transactions should be:
February 1, 2018, repurchase of 1,000 stocks at $47
Dr Treasury stocks 47,000
Cr Cash 47,000
April 10, 2019, treasury stocks were sold at $50
Dr Cash 50,000
Cr Treasury stocks 47,000
Cr Additional paid in capital 3,000
Treasury stocks account is a contra equity account with a debit balance that reduces the value of total stockholders' equity.