SQL select rows from two table and eliminate common columns

enter image description here

I have two tables table A and table B.

In Table A, I have distinct rows, while in Table b, there will be multiple rows.

For the output, I want to select all rows from table A with Status A and select cab from table B where status is 2 or 7 and if the records both match in Table A and Table B, then I need to eliminate and show the remaining rows.

enter image description here